﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="BillDetails.aspx.cs" Theme="SkinFile"
    Inherits="Pages_BillDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1" runat="server">
    <title>Bill Details</title>
    <script language="javascript" type="text/javascript">
        function CallPrint() {
            var btnExport = document.getElementById('btnGenerate');
            var btnWord = document.getElementById('btnWord');
            var btnPrint = document.getElementById('btnPrint');
            btnExport.style.display = 'none';
            btnPrint.style.display = 'none';
            btnWord.style.display = 'none';
            window.print();
            btnWord.style.display = 'block';
            btnExport.style.display = 'block';
            btnPrint.style.display = 'block';
        }
    </script>
</head>
<body>
    <form runat="server" id="frmBill">
    <center>
        <table>
            <tr>
                <td>
                    <asp:Button ID="btnGenerate" runat="server" Text="Export To Excel" OnClick="btnGenerate_Click" SkinID="DefaultButton" /></td><td>
                      <asp:Button ID="btnWord" runat="server" Text="Export To Word" OnClick="btnGenerateWord_Click" SkinID="DefaultButton" />   </td><td>            
                    <asp:Button ID="btnPrint" runat="server" Text="Print" OnClientClick="javascript:CallPrint();return false;" SkinID="DefaultButton" />
                </td>
            </tr>
        </table>
    </center>
   <asp:Panel ID="panMain" runat="server">
        <center>
            <div style="width: 98%; border-bottom: 1px Solid Black; border-top: 1px Solid Black;
                border-left: 1px Solid Black; border-right: 1px Solid Black;">
                <table width="98%" cellpadding="2" cellspacing="0" border="0">
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Image ID="imgLogo" runat="server" Height="100px" Width="100px" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <h1>
                                <asp:Label ID="lblSuppCompName" runat="server" Text=""></asp:Label>
                            </h1>
                            <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            Email: <a href="" runat="server" id="MailId">
                                <asp:Label ID="lblEmail" runat="server"></asp:Label>
                            </a>
                            <br />
                            Mobile:
                            <asp:Label ID="lblMobileNo" runat="server" Text=""></asp:Label>
                            <br />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" width="60%">
                            <h2>
                                <u>TAX INVOICE</u></h2>
                            <br />
                        </td>
                        <td align="right">
                            Date :
                            <asp:Label Text="" ID="lblDate" runat="server" />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left">
                            <b>M/S</b>-
                            <asp:Label ID="lblCCComp" runat="server"></asp:Label><br />
                            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                            <asp:Label ID="lblCCCompAdd" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            Bill No:
                            <asp:Label ID="lblBillNo" runat="server"></asp:Label>
                        </td>
                        <td align="left">
                            VAT TIN NO :
                            <asp:Label ID="CCVATNo" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" colspan="2">
                            <table width="100%">
                                <tr style="font-weight: bold">
                                    <td align="center">
                                        Material
                                    </td>
                                    <td align="center">
                                        Quantity
                                    </td>
                                    <td align="center">
                                        Rate
                                    </td>
                                    <td align="center">
                                        Amount
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <asp:Label ID="lblMaterial" runat="server"></asp:Label>
                                    </td>
                                    <td align="center">
                                        <asp:Label ID="lblQuantity" runat="server"></asp:Label>
                                    </td>
                                    <td align="center">
                                        <asp:Label ID="lblRate" runat="server"></asp:Label>
                                    </td>
                                    <td align="center">
                                        <asp:Label ID="lblAmount" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" align="left">
                                        VAT 5%
                                    </td>
                                    <td align="center">
                                        <asp:Label ID="lblVat" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" align="left">
                                        Total Amount (Rs.)
                                    </td>
                                    <td align="center">
                                        <asp:Label ID="lblTotalAmount" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" align="left">
                                        Rs.
                                        <asp:Label ID="lblAmountInWords" runat="server"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            TIN – NO:
                            <asp:Label ID="lblCTTIN" runat="server"></asp:Label>
                        </td>
                        <td align="left">
                            W.E.F.
                            <asp:Label ID="lblWEF" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left">
                            “I / Whereby certify that my/our registration certificate under the Maharashtra
                            Value Added Tax Act, 2002 is in force on the date on which the sale of goods specified
                            in this tax invoice is made by me/us and that the transaction of sale covered by
                            this invoice has been effected by me/us and it shall be accouted for in the turnover
                            of sales while filling of return and the due tax , if any, if any, payable on the
                            sale has been paid or shall be paid”
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right">
                            E. & O.E. <br /> For
                            <asp:Label ID="lblCCCompName" runat="server"></asp:Label>
                            <br />
                            <br />
                            Proprietor
                        </td>
                    </tr>
                </table>
            </div>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <p>
                &nbsp;</p>
            <div style="width: 98%; border-bottom: 1px Solid Black; border-top: 1px Solid Black;
                border-left: 1px Solid Black; border-right: 1px Solid Black;">
                <table width="98%">
                    <tr>
                        <td colspan="5" align="center">
                            <h1>
                                STATEMENT<br />
                                <asp:Label ID="lblCCCompStat" runat="server"></asp:Label></h1>
                        </td>
                    </tr>
                </table>
                <table width="100%" id="tblDetails" runat="server" style="border-style: solid; border-color: Black;
                    border-width: 0px">
                    <tr style="font-weight: bold; background-color: Gray">
                        <td align="center">
                            Date
                        </td>
                        <td align="center">
                            Material
                        </td>
                        <td align="center">
                            Lorry No
                        </td>
                        <td align="center">
                            Ticket No
                        </td>
                        <td align="center">
                            Challan No.
                        </td>
                        <td align="center">
                            Qty.
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </center>
    </asp:Panel>
    </form>
</body>
</html>
